/*
 * @Author: your name
 * @Date: 2021-05-08 21:20:59
 * @LastEditTime: 2021-05-08 21:34:11
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \finance-front\src\http\apis\modules\signManagement.js
 */

// 签单管理接口
import axios from "../../axios.js"
export default {
    // 获取所有签单
    getAllSignApi(data, binding) {
        return axios({
            url: '/crm/selectCustomerSign',
            method: 'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 重启功能
    restartSignApi(data, binding) {
        return axios({
            url: '/crm/insertRestartApplication',
            method: 'post',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    //新建签单
    createSignApi(data) {
        return axios({
            url: '/crm/insertCustomerSign',
            method: 'post',
            data
        })
    },
    //获取后台部门--》渠道专员
    getBackDepartApi() {
        return axios({
            url: '/crm/selectChannelOwner',
            method: 'get',
            data,
            headers: {
                "binding": binding
            }
        })
    },
    // 仅获取后台部门
    getBackDepart2Api() {
        return axios({
            url: '/crm/selectAllBackDepart',
            method: 'get',
        })
    },
    // 获取转单转出部门
    getBackDepart3Api(data) {
        return axios({
            url: '/crm/selectTransferApplicationDepart',
            method: 'get',
            params: data
        })
    },
    // 获取签单详情
    getSignDetailsApi(data) {
        return axios({
            url: '/crm/selectCustomerSignOne',
            method: 'get',
            params: data,
        });
    },
    // 获取所有渠道专员
    getBackPer() {
        return axios({
            url: '/crm/selectChannelOwner',
            method: 'get'
        })
    },
    // 根据类型获取渠道专员
    getTypeBackPer(data) {
        return axios({
            url: '/crm/selectBackDepartByType',
            method: 'get',
            params: data
        })
    },
    // 获取房产
    getHouseByIdApi(data) {
        return axios({
            url: '/crm/selectCustomersHouse',
            method: 'get',
            params: data
        })
    },
    // 查询所有前台中心并落到他下面的金融顾问
    selectDepartManager(data, binding) {
        return axios({
            url: '/crm/selectDepartManager',
            method: 'get',
            params: data,
            headers: {
                "binding": binding
            }
        })
    },
    selectDepartAlls(data, binding) {
        return axios({
            url: '/crm/selectDepartAlls',
            method: 'get',
            params: data,
            headers: {
                "binding": binding
            }
        })
    },
    // 修改做单渠道最后还款时间
    revisionTimeApi(data) {
        return axios({
            url: '/crm/updateSignRepayment',
            method: 'get',
            params: data
        })
    },
    // 查询用来签单的房产
    getSignHouseApi(data) {
        return axios({
            url: '/crm/selectCustomerPropertyRecords',
            method: 'get',
            params: data
        })
    },
    // 查询金融顾问30天计划
    getCustsPlanNum_eApi(data) {
        return axios({
            url: '/crm/selectCalendar',
            method: 'get',
            params: data
        })
    },
};
